/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.fei.ClassDiagram.data;

import java.lang.reflect.Modifier;
import org.fei.ClassDiagram.Editor.Wrappers.ClassDataWrapper;
import org.fei.ClassDiagram.Editor.Wrappers.MethodDataWrapper;

/**
 *
 * @author Tomas
 */
public class MethodTextLook extends MethodData {
    
    public MethodTextLook(MethodDataWrapper method, ClassDataWrapper classData) {
        super(method, classData);
    }
    
    @Override
    public String toString() {
        
        String str = new String();
        
        if (met.isStatic())
            str += "s";
        if (met.isAbstract() && !Modifier.isInterface(data.getAccess()))
            str += "a";
        
        // pridanie medzery ak je treba
        if (str.length() > 0)
            str += " ";
        
        str += super.toString();
        
        return str;
    }
}
